package com.lyc.wanandroid_kotlin.ui.activity.main.mvp.model

import com.lyc.wanandroid_kotlin.base.BaseModel
import com.lyc.wanandroid_kotlin.bean.HttpResult
import com.lyc.wanandroid_kotlin.bean.UserInfoBody
import com.lyc.wanandroid_kotlin.http.RetrofitHelper
import com.lyc.wanandroid_kotlin.ui.activity.main.mvp.contract.MainContract
import io.reactivex.Observable

/**
 * ClassName:com.lyc.wanandroid_kotlin.ui.activity.main.mvp.model
 * Description:
 */
class MainModel : BaseModel(), MainContract.Model {
    override fun logout(): Observable<HttpResult<Any>> {
        return RetrofitHelper.service.logout()
    }

    override fun getUserInfo(): Observable<HttpResult<UserInfoBody>> {
        return RetrofitHelper.service.getUserInfo()
    }


}